import request from '../request'
import globalConfig from "../config";

// 获取消息列表
export function msgList(params) {
    return request({
        url: `${globalConfig.getAPIPath()}${globalConfig.msg.msgList}`,
        method: 'get',
        params: params
    })
}
export function readMsg(data) {
    return request({
        url: `${globalConfig.getAPIPath()}${globalConfig.msg.read}`,
        method: 'post',
        params: data
    })
}
export function deleteMsg(data) {
    return request({
        url: `${globalConfig.getAPIPath()}${globalConfig.msg.delete}`,
        method: 'post',
        params: data
    })
}export function restoreMsg(data) {
    return request({
        url: `${globalConfig.getAPIPath()}${globalConfig.msg.restore}`,
        method: 'post',
        params: data
    })
}

